var uagent = navigator.userAgent.toLowerCase();
var arrMobi = new Array('midp', 'j2me', 'avantg', 'ipad', 'iphone', 'docomo', 'novarra', 'palmos','palmsource', '240x320', 'opwv', 'chtml', 'pda', 'windows ce','mmp/','mib/', 'symbian', 'wireless', 'nokia','hand', 'mobi', 'phone', 'cdm', 'up.b', 'audio', 'sie-', 'sec-','samsung', 'htc', 'mot-', 'mitsu', 'sagem', 'sony', 'alcatel','lg', 'erics', 'vx', 'nec', 'philips', 'mmm', 'xx', 'panasonic','sharp', 'wap', 'sch', 'rover', 'pocket', 'benq', 'java', 'pt','pg', 'vox', 'amoi', 'bird', 'compal', 'kg', 'voda', 'sany','kdd', 'dbt', 'sendo', 'sgh', 'gradi', 'jb', 'dddi', 'moto', 'opera mobi', 'opera mini', 'android');

isMobile = false;
for(i = 0; i < arrMobi.length; i++){
	if(uagent.indexOf(arrMobi[i]) != -1){
		isMobile = true;
		break;
	}
}
if(isMobile){
	if(uagent.indexOf('android') != -1){
		// Android device
		location.href = 'http://kenhcover.blogspot.com/';
	}
	else if(uagent.indexOf('iphone') != -1 || uagent.indexOf('ipad') != -1){
		// iOS device, do nothing
		location.href = 'http://kenhcover.blogspot.com/';
	}
	else{
		// Other mobile device
		location.href = 'http://kenhcover.blogspot.com/';
	}
}